package com.stormrage.edu.dao.learn.impl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.stormrage.edu.dao.learn.LeaStudentCourseDao;
import com.stormrage.entity.learn.view.LeaStudentCourse;
import com.stormragetech.core.dao.MysBaseDao;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @Title: LeaStudentCourseDaoImpl.java
 * @Package com.stormrage.edu.dao.learn.impl
 * @Description: 选课 Dao
 * @author www.stormragetech.com
 * @date 2016年4月21日
 * @version V1.0
 */
@Repository
public class LeaStudentCourseDaoImpl extends MysBaseDao implements LeaStudentCourseDao {

	private static final Logger logger = LoggerFactory.getLogger(LeaStudentCourseDaoImpl.class);

	@Override
	public List<LeaStudentCourse> queryListByStuNess(final Map<String, Object> map) throws StormrageTechException {

		logger.debug(" 【 Dao 】-【 LeaStudentCourseDao 】-【 QueryListByStuType 】- 开始运行 ");

		final String query = "SELECT * FROM lea_student_course WHERE stu_id = :stuId AND ness = :ness";
		logger.debug(" 数据库执行语句为 " + query);

		List<LeaStudentCourse> array = queryList(query, LeaStudentCourse.class, map);

		logger.debug(" 【 Dao 】-【 LeaStudentCourseDao 】-【 QueryListByStuType 】- 完成运行 ");
		return array;

	}

}
